package com.endurance.controller;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * 访问JSP页面
 */
@Controller
@RequestMapping("/user")
public class UserController {
    @PostMapping("/list")
    public String list(String username, String password, Model model) {
        model.addAttribute("username", username);
        model.addAttribute("password", password);
        return "index";
    }

}
